home *** CD-ROM | disk | FTP | other *** search
- Path: hermes.louisville.edu!starbase!jmsche01
- From: jmsche01@starbase.spd.louisville.edu (James M. Scherer)
- Newsgroups: comp.lang.c++
- Subject: Re: Trig functions
- Date: 5 Jan 1996 16:42:12 GMT
- Organization: University of Louisville, Louisville KY USA
- Message-ID: <4cjkd4$hb1@hermes.louisville.edu>
- References: <4ch9ka$4pc@felix.junction.net>
- NNTP-Posting-Host: starbase.spd.louisville.edu
- X-Newsreader: NN version 6.5.0 CURRENT #16
-
- heppner@portage.net (Donald Heppner) writes:
-
- >I need to have a few trig functions in my C++ program. I have found
- >some trig functions, but for some reason, they give the wrong answer
- >(Maybe a different kind of trig). I need tan, cos, sin, and all of these
- >functions to the power of negative one. I need them to give me the same
- >answer as a calculator would.
-
- Trig notation is a little confusing. What looks like a trig function raised
- to the power of negative one is the standard notation for the arc-function.
- That is, the function gives a value for a given angle; the arc-function
- returns the angle for the input value. This is sometimes confused with the
- function raised to the power of negative one, which would be one divided by
- the function.
-
- One reason the output of the arcsine, arctan, etc. functions may not be the
- same as the output of your calculator is that the output of these functions
- is in radians by standard and your calculator might be set to output in
- degrees. A degree is pi/180 radians.
-
- Mitch
-
-